﻿using System.Linq;


namespace RaceList.activity.help
{
    /// <summary>
    ///     这里主要是封装了一些数据库中对Activity_Relay,Activity_SubRelay的操作
    /// </summary>
    public partial class RelayQuery
    {
        public static Activity_Sponsor GetActivity_Sponsor(int sponsorId)
        {
            ipowdb_suibian_webDataContext db = ConnHelper.ipowdb_suibian_web();
            Activity_Sponsor sponsor = db.Activity_Sponsor.Where(s => s.Id == sponsorId).SingleOrDefault();
            return sponsor;
        }
    }
}